package com.guoyan.blockchain.service;

import com.guoyan.blockchain.common.response.BaseResponse;

/**
 * @author yeym
 */
public interface IBaseService {
    /**
     * 创建通道
     *
     * @param channelName 通道名
     */
    boolean createChannel(String channelName);

    boolean deployChainCode(String chainCodeName, Integer version, String channelName);

    BaseResponse joinNewPeer(String ip, String name, String channelName);

    Object getPeers();
}
